package com.mandy.datamerge.mock.entity;

import com.mandy.datamerge.annotation.DataMergeField;
import com.mandy.datamerge.mock.service.UserService;
import lombok.Getter;
import lombok.Setter;

import java.util.List;

/**
 * @className Position
 * @description 岗位
 * @author jianyongjie@126.com
 * @date 2020/7/2 10:38 下午
 * @version 1.0.0
 **/
@Getter
@Setter
public class Position {
    private Long id;

    private String name;

    @DataMergeField(service = UserService.class, method = "getByPositionId", paramNames = "id")
    private List<User> users;
}
